<ui:composition template="/WEB-INF/templates/main-template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	<ui:param name="pageName" value="Personal Info"></ui:param>
	<ui:define name="sidebar">
	<ui:include src="/WEB-INF/templates/public-sidebar.xhtml" />
	</ui:define>
	<ui:define name="content">
	
		<h:form>
			<p:growl />
			
			<p:tabView id="tabView" > 
				
				<p:tab id="tab1" title="Employee Profile" >  
					
					<h3>Personal Details</h3><br/>
					<p:separator id="separator1"/> <br/>
					<h:panelGrid columns="3" cellspacing="7" columnClasses="employeeDetailLabel,gridCellMiddleLeftAligned">					
												
						<h:outputLabel value="Name "  />				
						<h:outputLabel value=" : " />
						<h:outputLabel value="#{personalInfoBean.employee.firstName} #{personalInfoBean.employee.lastName}"/>
						
						<h:outputLabel value="Emloyee Code "  />				
						<h:outputLabel value=" : " />
						<h:outputLabel value="#{personalInfoBean.wamUser.employeeCode}"/>
						
						<h:outputLabel value="Department "  />				
						<h:outputLabel value=" : " />
						<h:outputLabel value="#{personalInfoBean.employee.moduleName}"/>
						
						<h:outputLabel value="Designation "  />				
						<h:outputLabel value=" : " />
						<h:outputLabel value="#{personalInfoBean.employee.designation}" />
						
						<h:outputLabel value="Contact No "  />				
						<h:outputLabel value=" : " />
						<h:outputLabel value="#{personalInfoBean.employee.telephone}" />
						
						<h:outputLabel value="Email "  />				
						<h:outputLabel value=" : " />
						<h:outputLabel value="#{personalInfoBean.employee.email}"/>
					
					</h:panelGrid>
					
					<br/>
					<h3>Project Details</h3><br/>
					<p:separator id="separator2"/> <br/> 
					
					<h:panelGrid columns="3" cellspacing="7" columnClasses="employeeDetailLabel,gridCellMiddleLeftAligned ">					
												
						<h:outputLabel value="Competency Lead "  />				
						<h:outputLabel value=" : " />
						<h:outputLabel value="#{personalInfoBean.employeeAndReporting.competencelead.firstName} #{personalInfoBean.employeeAndReporting.competencelead.lastName}" />
						
						<h:outputLabel value="Project Manager "  />				
						<h:outputLabel value=":" />
						<h:outputLabel value="#{personalInfoBean.employeeAndReporting.projectManager.firstName} #{personalInfoBean.employeeAndReporting.projectManager.lastName}"/>
						
						<h:outputLabel value="Project Name "  />				
						<h:outputLabel value=" : " />
						<h:outputLabel value="#{personalInfoBean.employeeAndReporting.project}" />
						
						<h:outputLabel value="Start Date "  />				
						<h:outputLabel value=" : " />
						<h:outputLabel value="#{personalInfoBean.employeeAndReporting.startDate}" >
							<f:convertDateTime pattern="dd-MMM-yyyy" timeZone="#{personalInfoBean.timeZone}"/>
						</h:outputLabel>	
						
						<h:outputLabel value="End Date "  />				
						<h:outputLabel value=" : " />
						<h:outputLabel value="#{personalInfoBean.employeeAndReporting.endDate}">
							<f:convertDateTime pattern="dd-MMM-yyyy" timeZone="#{personalInfoBean.timeZone}"/>
						</h:outputLabel>	
											
					</h:panelGrid>
					
					<br/>
					<h3>Company Information</h3><br/>
					<p:separator id="separator3"/> <br/> 
					
					<h:panelGrid columns="3" cellspacing="7" columnClasses="employeeDetailLabel,gridCellMiddleLeftAligned ">					
												
						<h:outputLabel value="Comapny Name "  />				
						<h:outputLabel value=" : " />
						<h:outputLabel value="ERPandERP India Pvt Ltd. " />
						
						<h:outputLabel value="Contact No "  />				
						<h:outputLabel value=" : " />
						<h:outputLabel value="+91 40 6574 2416" />
						
						<h:outputLabel value="Email "  />				
						<h:outputLabel value=" : " />
						<h:outputLabel value="contact@erpanderp.com" />
						
						<h:outputLabel value="Address "  />				
						<h:outputLabel value=" : " />
						<h:outputLabel value="# 5-9-22, Manasarovar Complex, Secretariat Road, Hyderabad-500063, Andhra Pradesh" />
											
					</h:panelGrid>
				
				</p:tab> 
				
				<p:tab id="tab2" title="Change Password"> 
					
					<h:panelGrid columns="4" cellspacing="7">
						<h:outputLabel value="*" style="color:red;"  />
				        <h:outputLabel value="Current password"  />				
						<h:outputLabel value=":" />
						<p:password id="currentpwd" value="#{personalInfoBean.oldPassword}" feedback="false" /> 
						
						<h:outputLabel value="*" style="color:red;"  />
				        <h:outputLabel value="New password"  />				
						<h:outputLabel value=":" />
						<p:password id="pwd1" value="#{personalInfoBean.newPassword}" feedback="false"/>  
  
						
						<h:outputLabel value="*" style="color:red;"  />
				        <h:outputLabel value="Confirm new password"  />				
						<h:outputLabel value=":" />
						<p:password id="pwd2" value="#{personalInfoBean.confirmPassword}" feedback="false"/>  
							 
					</h:panelGrid>
					
					<h:panelGrid style="padding-top: 5px; width: 100%; border-top: 1px solid #d9d9d9"
								columnClasses="gridCellMiddleRightAligned">
						<h:panelGroup >
							<p:commandButton value="Update" update="@form" action="#{personalInfoBean.updateAction}"/>
							<p:commandButton value="Reset" action="personalinfo" /> 
					        <p:commandButton value="Home" action="wudashboard" /> 
						</h:panelGroup>
				    </h:panelGrid> 
					
				</p:tab>
			
			</p:tabView>
			
		</h:form>
	</ui:define>
</ui:composition>

